// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
// import ElementUI from 'element-ui';

//按需加载
import {
    Alert,
    Button,
    Row,
    Col,
    TableColumn,
    Scrollbar,
    Form,
    FormItem,
    Input,
    Dialog,
    Message,
    MessageBox,
    Tabs,
    TabPane,
    Carousel,
    CarouselItem,
    Notification
} from 'element-ui'
//自定义主题
import './assets/theme/index.css'
import VueSocketio from 'vue-socket.io';

Vue.use(VueSocketio, process.env.SOCKET_URL);

Vue.use(Alert)
Vue.use(Button)
Vue.use(Row)
Vue.use(Col)
Vue.use(TableColumn)
Vue.use(Scrollbar)
Vue.use(Dialog)
Vue.use(Form)
Vue.use(FormItem)
Vue.use(Input)
Vue.use(Tabs)
Vue.use(TabPane)
Vue.use(Carousel)
Vue.use(CarouselItem)
Vue.config.productionTip = false

/* eslint-disable no-new */
Object.defineProperty(Vue.prototype, 'UPLOAD_URL', {value: process.env.UPLOAD_URL});
Object.defineProperty(Vue.prototype, 'BASE_URL', {value: process.env.BASE_URL});
Object.defineProperty(Vue.prototype, '$message', {value: Message});
Object.defineProperty(Vue.prototype, '$alert', {value: MessageBox.alert});
Object.defineProperty(Vue.prototype, '$confirm', {value: MessageBox.confirm});
Object.defineProperty(Vue.prototype, '$notify', {value: Notification});
Object.defineProperty(Vue.prototype, 'APPID', {value: process.env.APP_ID});
console.log('技术支持:成都思多客网络科技有限公司：http://www.sharestock.cn');
console.log("%c","background: url(http://www.sharestock.cn/public/images/sdk_wx_qrcode.jpg) no-repeat center;padding-left:160px;padding-bottom:160px;background-size:cover;")
new Vue({
    el: '#app',
    router,
    components: { App },
    template: '<App/>'
})
